import Sequelize = require('sequelize');
import { DBManager } from './dbmanager';

///模型名Test3，則默認數據庫表名為Test3s
//模型必須繼承自Sequelize.Model
export class Test3 extends Sequelize.Model
{
    public username: string = "";
    public birthday: Date = new Date();

    public static RegModel(): void
    {
        Test3.init(
            {
                username: Sequelize.STRING,
                birthday: Sequelize.DATE
            }
            , { sequelize: DBManager.getSequlize() }
            );

    }
}